<?php

/** libraries
 * http://docs.joomla.org/JToolBarHelper
 */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import Joomla view library
jimport('joomla.application.component.view');

class bgViewbg extends JView
{
    protected $result;
    protected $pagination;
    
	// Overwriting JView display method
	function display($tpl = null) 
	{
        $task = &JRequest::getVar('task');
        
        switch($task){
            case 'page_2':
                $this->setLayout('page_2');
            break;
            case 'page_1':
                $this->setLayout('page_1');
        }
		parent::display();
	}
}




